import type { MenuResponse } from '@/services/modules'
import request from '@/utils/request'

export const menu = (params?: any): Promise<R<MenuResponse[]>> => {
    return request({
        url: '/menu',
        method: 'get',
        params
    })
}